package com.zhengx.fragmentutil;

import androidx.fragment.app.Fragment;
import androidx.lifecycle.Lifecycle;

/**
 * name：com.zhengx.fragmentutil
 * class: 监听fragment是否可见的接口
 * author: zhengx
 * create_time: 19-9-20
 * 用{@link androidx.fragment.app.FragmentTransaction#setMaxLifecycle(Fragment, Lifecycle.State)}
 * 设置生命周期，在onResume和onPause中获取是否可见就行了
 */
@Deprecated
public interface IFragmentVisibleHandler {

    void onFragmentVisible();

    void onFragmentInvisible();
}
